package com.teamin.entity;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

public class LabelEntity implements Serializable{

    @ApiModelProperty(value = "标签ID")
    private Long labelId;

    @ApiModelProperty(value = "标签的创建时间")
    private Date createTime;

    @ApiModelProperty(value = "标签的名称")
    //@Pattern(regexp = "[\\-_0-9a-zA-Z\\u4E00-\\u9FA5\\u3010\\u3011\\x5b\\x5d\\x2d\\x5f]{1,100}",message = "标签的名称规则不匹配")
    @Length(min = 1,max = 100, message = "标签的名称长度为1--100 之前")
    private String labelName;

    @ApiModelProperty(value = "标签的创建人")
    private Long userId;

    @ApiModelProperty(value = "所属的圈子ID")
    private Long circleId;

    public Long getLabelId() {
        return labelId;
    }

    public void setLabelId(Long labelId) {
        this.labelId = labelId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName == null ? null : labelName.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCircleId() {
        return circleId;
    }

    public void setCircleId(Long circleId) {
        this.circleId = circleId;
    }
}